package edu.gatech.cs2340.OregonTrail;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Image;
import java.awt.Insets;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.Color;

public class LosePanel extends JPanel {
	private static final long serialVersionUID = -3310464108137864932L;
	private Image backgroundImage;
	
	
	/**
	 * Create the panel.
	 * @param string 
	 * @throws IOException 
	 */
	public LosePanel(String reason) throws IOException {
		setPreferredSize(new Dimension(800, 500));
		backgroundImage = ImageIO.read(LosePanel.class.getResource("/edu/gatech/cs2340/OregonTrail/Images/gameOver.png"));
	}
	
	
	public void paintComponent(Graphics g) {
	    super.paintComponent(g);

	    // Draw the background image.
	    g.drawImage(backgroundImage, 0, 0, null);
	}

}
